﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MODASA.Oferta
{
    public partial class RegistroOferta : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            
            GVDETALLE.DataBind();



        }

        protected void IBFENTREGA_Click(object sender, ImageClickEventArgs e)
        {
            if (CFENTREGA.Visible == false)
            {
                CFENTREGA.Visible = true;
            }
            else { CFENTREGA.Visible = false; }
        }

        protected void IBVALIDO_Click(object sender, ImageClickEventArgs e)
        {
            if (CVALIDO.Visible == false)
            {
                CVALIDO.Visible = true;
            }
            else { CVALIDO.Visible = false; }
        }

        

        protected void IBVALIDEZ_Click(object sender, ImageClickEventArgs e)
        {
            if (CVALIDEZ.Visible == false)
            {
                CVALIDEZ.Visible = true;
            }
            else { CVALIDEZ.Visible = false; }
        }

        protected void CFECHAENTREGA_SelectionChanged(object sender, EventArgs e)
        {
            TBFENTREGA.Text = CFENTREGA.SelectedDate.ToShortDateString();
        }

        protected void CVALIDO_SelectionChanged(object sender, EventArgs e)
        {
            TBVALIDO.Text = CVALIDO.SelectedDate.ToShortDateString();
        }

        protected void CVALIDEZ_SelectionChanged(object sender, EventArgs e)
        {
            TBVALIDEZ.Text = CVALIDEZ.SelectedDate.ToShortDateString();
        }
        }
    }
